package com.zb.zeus.auth.remote;

import com.zb.zeus.common.core.domain.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @title: RemoteZbPempService
 * @projectName zhengbang
 * @description: TODO
 * @date 2022/2/15
 */
@FeignClient(contextId = "remoteZbPempService", value = "zb-pemp")
public interface RemoteZbPempService {

    /**
     * 获取用户账号
     *
     * @return
     */
    @PostMapping("/feishu/getUserIdByAccessToken")
    @ApiOperation(value = "获取用户账号")
    R<String> getUserIdByAccessToken(@RequestParam(value = "code") String code);
}
